#ifndef QTRENDDATADAILOG_H
#define QTRENDDATADAILOG_H

#include "qtrendfiledata.h"

#include "../../libs/core/qbasedialog.h"

#include <QTreeWidget>

class QTrendDataDailog : public QBaseDialog
{
    Q_OBJECT
    
public:
    explicit QTrendDataDailog(QTrendFileData *file,QWidget *parent = 0);
    ~QTrendDataDailog();
    
    void    set_data(tagTrendData *data);
protected slots:
    void    save();
    void    first();
    void    prev();
    void    next();
    void    last();
protected:
    void    update_action();
protected:
    QTreeWidget     *m_property_view;
    QTreeWidget     *m_data_view;
    QTrendFileData  *m_trend_file;
    QList<QTreeWidgetItem*> m_property_items;

    tagTrendData    *m_current_data;

    QAction*        m_first_action;
    QAction*        m_prev_action;
    QAction*        m_next_action;
    QAction*        m_last_action;

};

#endif // QTRENDDATADAILOG_H
